<template>
  <el-form-item label-width="0">
    <el-divider class="custom-divider-margin-top">{{$t('designer.setting.optionsSetting')}}</el-divider>
    <option-items-setting :designer="designer" :selected-widget="thisSelectedWidget"></option-items-setting>
  </el-form-item>
</template>

<script>
  import OptionItemsSetting from "@/components/designer/form-designer/setting-panel/option-items-setting"

  export default {
    name: "optionItems-editor",
    mixins: [],
    props: {
      designer: Object,
      selectedWidget: Object,
      optionModel: Object,
    },
    components: {
      OptionItemsSetting,
    },
	  data(){
    	return{
    		thisSelectedWidget:this.selectedWidget,
			thisOptionModel:this.optionModel
		}
	  },
	  watch: {
		  'selectedWidget': {
			  handler(val) {
				  if (val) {
					  this.thisSelectedWidget = val
				  }
			  }
		  },
	  },
  }
</script>

<style scoped>

</style>
